package com.wangshuo.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wangshuo.entity.Goods;
import com.wangshuo.entity.GoodsItem;
import com.wangshuo.service.GoodsService;
import com.wangshuo.mapper.GoodsMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 13326
* @description 针对表【goods】的数据库操作Service实现
* @createDate 2025-03-06 11:24:28
*/
@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods>
    implements GoodsService{
    @Resource
    private GoodsMapper goodsMapper;
    @Override
    public IPage<GoodsItem> getpage(IPage<GoodsItem> page, String keyword, Long uid){
        return goodsMapper.getpage(page,keyword,uid);
    }
    @Override
    public IPage<GoodsItem> getpage1(IPage<GoodsItem> page, String keyword){
        return goodsMapper.getpage1(page,keyword);

    }
    @Override
    public GoodsItem getbyid(Long id){
        return goodsMapper.getbyid(id);
    }

}




